// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   SplashScreen.java

package org.quickserver.net.qsadmin.gui;

import java.awt.*;
import javax.swing.*;
import org.quickserver.swing.JFrameUtilities;

public class SplashScreen extends JWindow
{

    public SplashScreen()
    {
        logo = new ImageIcon(getClass().getClassLoader().getResource("icons/logo.png"));
        productName = new JLabel("<html><font face=\"Verdana\" size=\"3\"> Loading..</font><br><font face=\"Verdana\" size=\"5\">QSAdminGUI</font>", logo, 0);
        productName.setBackground(new Color(238, 238, 230, 255));
        productName.setOpaque(true);
        productName.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10), BorderFactory.createLineBorder(Color.black)));
        getContentPane().add(productName);
        Dimension dim = productName.getPreferredSize();
        dim.setSize(dim.getWidth() + 10D, dim.getHeight() + 10D);
        setSize(dim);
        JFrameUtilities.centerWindow(this);
        setVisible(true);
    }

    public void kill()
    {
        dispose();
    }

    protected ImageIcon logo;
    protected JLabel productName;
}
